package cn.tedu.csmall.passport.ex;


import cn.tedu.csmall.passport.web.ServiceCode;

/**
 * 描述：业务异常类
 *
 * @author tangxuesong
 * @date Created in 2022/10/26 16:28
 */
public class ServiceException extends RuntimeException{

    private ServiceCode serviceCode;

    public ServiceException(ServiceCode serviceCode, String message) {
        super(message);
        this.serviceCode = serviceCode;
    }

    public ServiceCode getServiceCode() {
        return serviceCode;
    }
}
